package com.hzqy.persistence.dao.industry;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.AlertInfoVo;
import com.hzqy.web.vo.industry.medical.SdGoodOrderVo;
import com.hzqy.web.vo.industry.medical.SdUserVo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class SdGoodOrderDao extends PersistenceDao<SdGoodOrderVo, Integer> {
    
    public int addDictOrder(SdGoodOrderVo sdGoodOrderVo){
        String namespace = this.getNamespace();
        return getSqlSession().insert(namespace + "addDictOrder", sdGoodOrderVo);
    }
    
    public int addDictOrderTotal(SdGoodOrderVo sdGoodOrderVo){
        String namespace = this.getNamespace();
        return getSqlSession().insert(namespace + "addDictOrderTotal", sdGoodOrderVo);
    }
    
    public List<SdUserVo> selectDictTotalOrder(Map<String,Object> map){
        String namespace = this.getNamespace();
        return getSqlSession().selectList(namespace + "selectDictTotalOrder", map);
    }
    public List<SdUserVo> selectDictOrderCount(SdUserVo sdUserVo){
        String namespace = this.getNamespace();
        return getSqlSession().selectList(namespace + "selectDictOrderCount", sdUserVo);
    }
    
    public List<SdGoodOrderVo> selectTotalOrderByIdTime(SdGoodOrderVo sdGoodOrderVo){
        String namespace = this.getNamespace();
        return getSqlSession().selectList(namespace + "selectTotalOrderByIdTime", sdGoodOrderVo);
    }
    
    public int updateDictOrderTotal(SdGoodOrderVo sdGoodOrderVo1){
        String namespace = this.getNamespace();
        return getSqlSession().update(namespace + "updateDictOrderTotal", sdGoodOrderVo1);
    }
    
    public List<SdGoodOrderVo> selectOrderByPoid(Map<String,Object> map){
        String namespace = this.getNamespace();
        return getSqlSession().selectList(namespace + "selectOrderByPoid", map);
    }
    
    public int deleteOrderByTotal(SdGoodOrderVo sdGoodOrderVo) {
        String namespace = this.getNamespace();
        return getSqlSession().update(namespace + "deleteOrderByTotal", sdGoodOrderVo);
    }
    
    public int deleteOrderById(SdGoodOrderVo sdGoodOrderVo) {
        String namespace = this.getNamespace();
        return getSqlSession().update(namespace + "deleteOrderById", sdGoodOrderVo);
    }
    
    public int updateOrder(SdGoodOrderVo sdGoodOrderVo) {
        String namespace = this.getNamespace();
        return getSqlSession().update(namespace + "updateOrder", sdGoodOrderVo);
    }
    
    public List<SdGoodOrderVo> selectOrderByPoidCount(SdGoodOrderVo sdGoodOrderVo) {
        String namespace = this.getNamespace();
        return getSqlSession().selectList(namespace + "selectOrderByPoidCount", sdGoodOrderVo);
    }
    
    public List<SdGoodOrderVo> selectOrdersByPoid(SdGoodOrderVo sdGoodOrderVo1) {
        String namespace = this.getNamespace();
        return getSqlSession().selectList(namespace + "selectOrdersByPoid", sdGoodOrderVo1);
    }
    
    public List<SdUserVo> selectDictTotalOrderByChoose(Map<String, Object> resultMap) {
        String namespace = this.getNamespace();
        return getSqlSession().selectList(namespace + "selectDictTotalOrderByChoose", resultMap);
    }
    
    public List<SdUserVo> selectOrderCountByChoose(SdUserVo sdUserVo) {
        String namespace = this.getNamespace();
        return getSqlSession().selectList(namespace + "selectOrderCountByChoose", sdUserVo);
    }
    
    public SdGoodOrderVo selectOrderById(SdGoodOrderVo sdGoodOrderVo) {
        String namespace = this.getNamespace();
        return getSqlSession().selectOne(namespace + "selectOrderById", sdGoodOrderVo);
    }
    
    public List<SdGoodOrderVo> selectOrderByOrderId(SdGoodOrderVo sdGoodOrderVo) {
        String namespace = this.getNamespace();
        return getSqlSession().selectList(namespace + "selectOrderByOrderId", sdGoodOrderVo);
    }
}
